package com.ggs.rg.ybjb.usermodule.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ggs.rg.ybjb.pojomodule.pojo.TOrder;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cxw
 * @since 2021-11-02
 */
public interface TOrderService extends IService<TOrder> {


    //根据手机号获取已付款订单
     JSONObject selectOrderByPhone(Integer pagesNumber,String phone,Integer status);

    //根据oid获取指定订单详情
     JSONObject selectTOrderDetailById(String oid);

     //对未付款的订单进行付款
    JSONObject pay(String oid, Integer aid);

    //根据手机号获取oid
     List<Long> selectTOrderByPhone(String phone);
}
